<!DOCTYPE html>
<html lang="en" class="no-js" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorator="layout">
<head>
<title>品牌管理</title>
<script th:src="@{/plugins/jquery-1.11.0.min.js}" src="plugins/jquery-1.11.0.min.js" type="text/javascript"></script>
</head>
<body>
<div layout:fragment="content">
	<div class="row">
		<div class="table-toolbar col-md-12">
				<div class="btn-group pull-right">
					<a onclick="beforeSkip(this)" href="edit.html" th:href="@{/goods/brand/add}" id="link_add" name="link_add" class="btn green">添加品牌<i class="fa fa-plus"></i></a>
				</div>		 
				<div class="col-md-9 col-sm-12">
					 <form class="form-inline" th:action="@{/goods/brand/index}" method="post" th:object="${brandSearch}" >
					 		<div class="form-group">
					 			<label class="sr-only" for="brandname">Name</label>
					 			搜索: <input type="text" th:field="*{brandname}" placeholder="品牌名称"  id="brandname" class="form-control"/>
					 		</div>
					 		<div class="form-group">
					 			<label class="sr-only" for="brandtype">brandType</label>
					 			<select th:field = "*{brandtype}" id="brandtype" style="width:200px;"  th:remove="none" class="form-control">
					                	<option value = "">全部</option>
					                	<option th:each="type : ${brandTypes}"					              
					                        	th:value="${type}" th:text="${type.description}">Credit card</option>
					            </select>
					 		</div>
					 		<button type="submit" id="bt_search" name="bt_search" class="btn green"><i class="fa  fa-search"></i></button>							
					 </form>		
			   </div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<div id = "div_brands_grid" th:include="goods/brand/brands_table">
		
			</div>
		</div>
	</div>
</div>	
</body>
</html>
<script th:inline="javascript">
    /*<![CDATA[*/
    function beforeSkip(obj){
        obj.href = obj.href + '?'+$('.paging_bootstrap ul .active a').attr('href').split('?')[1];
    }
    /*]]>*/
</script>